import request from "./request";

export enum msgType {
    a11,
    read,
    unread
}

/**
 * 获取消息列表
 * @param type 0all 1已读 2为读
 * @returns 
 */
export const getMessage = (type: msgType = msgType.a11) => {
    return request({
        url: '/api/msg',
        method: 'get',
        data: { type }
    })
}